import { get, post } from "../base/request";

// 获取学社规则
export const getSocietyRule = () => get("/api/common/society_rule");

// 用户协议
export const getUserRule = () => get("/api/common/user_rule");

// 会员服务协议
export const getVipRule = () => get("/api/common/vip_rule");

// 隐私协议
export const getPrivateRule = () => get("/api/common/private_rule");

// 获取擅长领域列表
export const getExpertiseList = () => get('/api/common/expertise')

// 获取区域列表
export const getRegionList = (pid) => get('/api/common/area', { pid })

// 获取国家列表
export const getCountryList = (name) => get('/api/common/nation', { name })

// 首页热门课程
export const getCurriculumHot = (page) => get('/api/curriculum/hot', { page }, {}, { loadingText: '正在加载' });

// 获取小程序码
export const getQrcode = (data) => post('/api/user/get_qrcode', data)
